/*
 * @Author: your name
 * @Date: 2020-02-22 18:16:02
 * @LastEditTime: 2020-02-22 22:58:38
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /dyts/src/apis/index.ts
 */
import request from "@/utils/request";

export function login(data: object) {
  return request({
    url: "v1/customer/auth/login",
    method: "post",
    data
  });
}

//常量枚举

export function formConst() {
  return request({
    url: "v1/customer/info/form/const",
    method: "get"
  });
}

//网格员信息

export function formGridc() {
  return request({
    url: "v1/customer/info/form/gridc",
    method: "get"
  });
}

//疫情信息录入
export function formAdd(data: object) {
  return request({
    url:'v1/customer/info/form/add',
    method:'post',
    data
  })
}
//搜索
export function keySearch(params: object) {
  return request({
    url: 'v1/customer/info/form/key/search',
    method: 'get',
    params
  })
}
//注册
export function register(data:object) {
  return request({
    url:"v1/customer/auth/register ",
    method: 'post',
    data
  })
}

//关键字获取

export function keyGroup() {
  return request({
    url: 'v1/customer/info/form/key/group',
    method: 'get'
  })
}
//关键字添加

export function keyAdd(data:object) {
  console.log(data,'data');
  
  return request({
    url: 'v1/customer/info/form/key/add',
    method: 'post',
    data
  })
}